﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.game
{
    public class LetSbOutRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  50 ;

        public bool Result { get; set; }            //踢人结果
        public string Name { get; set; }           //申请人姓名
        public int UserId { get; set; }               //申请人userId
        public int OutUserId { get; set; }         //被踢玩家的userId   


        public void decode(Input _in)
        {
            Result = _in.readBoolean();
            Name = _in.readString();
            UserId = _in.readInt();
            OutUserId = _in.readInt(); 
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("result = {0}, name = {1}, userId = {2}, outUserId = {3}", Result, Name, UserId, OutUserId);
        }
    }
}